<?php
declare (strict_types = 1);
namespace app\adminapi\logic\system\organize;
use adminmatrix\server\app\logic\BaseLogic;
use adminmatrix\annotation\Inject;
use app\adminapi\model\system\organize\AdminOrganization;
use think\Request;

class CompanyLogic extends BaseLogic
{
    #[Inject]
    protected AdminOrganization $model;



    public function get(Request $request) : array
    {
        return (new AdminOrganization) -> field('name  , id  ')->select() -> toArray();
    }
}